<template>
  <div class="home">
    <h1>首页</h1>
    <el-menu mode="horizontal">
      <el-menu-item index="1" @click="$router.push('/')">首页</el-menu-item>
      <el-menu-item index="2" @click="$router.push('/course-upload')">课程上传</el-menu-item>
      <el-menu-item index="3" @click="$router.push('/user-management')">用户管理</el-menu-item>
      <el-menu-item index="4" @click="$router.push('/role-management')">角色管理</el-menu-item>
    </el-menu>
  </div>
</template>
 
<script>
export default {
  name: 'HomeView'
};
</script>
 
<style scoped>
.home {
  padding: 20px;
}
</style>
